import re
str1 = "@小明 @亚里士多德"
pattern = r'\s*@'
list1 = re.split(pattern, str1)
print("您@的好友有：")
for item in list1:
    if item != "":
        print(item)